Ext.ns("Ext.manager")

var managerGridReader = new Ext.data.JsonReader(
			{
				root : 'list',
				totalProperty : 'totalCount',
				id : 'id',
				successProperty : '@success'
			}, 
			[ {
				name : 'generalmanagerid',
				mapping : 'generalmanagerid'
			}, {
				name : 'generalmanagername',
				mapping : 'generalmanagername'
			}, {
				name : 'jobnumber',
				mapping : 'jobnumber'
			}, {
				name : 'generalmanagerphone',
				mapping : 'generalmanagerphone'
			}, {
				name : 'lastlogintime',
				mapping : 'lastlogintime'
			}, {
				name : 'becomemanagertime',
				mapping : 'becomemanagertime'
			}, {
				name : 'authorizeadministrator',
				mapping : 'authorizeadministrator'
			}, {
				name : 'generalmanagerpassword',
				mapping : 'generalmanagerpassword'
			},{
				name : 'sparefield1',
				mapping : 'sparefield1'
			},{
				name : 'sparefield2',
				mapping : 'sparefield2'
			},{
				name : 'sparefield3',
				mapping : 'sparefield3'
			}]);

Ext.manager.ManagerStore = function(){
	Ext.manager.ManagerStore.superclass.constructor.call(this, {
	        proxy: new Ext.data.HttpProxy({
	            url: 'generalManager/generalManagerAction!getAllGeneralManager'
	        }),
	        reader : managerGridReader,
			pageSize : 20,
	    });

};
Ext.extend(Ext.manager.ManagerStore, Ext.data.Store);